import request from '@/utils/request'
// 新增红包活动配置
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/activityRedpacket/insert',
    method: 'post',
    data
  })
}
// 根据id获取详情
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/activityRedpacket/getByActivityBaseId',
    method: 'post',
    data
  })
}
// 修改
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/activityRedpacket/update',
    method: 'post',
    data
  })
}

